import request from '@/utils/request'

// 删除
export function deleteOutcost(params) {
  return request({
    url: '/operatingCenter/outCost/deleteByPrimaryKey',
    method: 'POST',
    params
  })
}

// 修改
export function updateOutcost(data) {
  return request({
    url: '/operatingCenter/outCost/updateByPrimaryKeySelective',
    method: 'POST',
    data
  })
}

// 添加
export function insertOutcost(data) {
  return request({
    url: '/operatingCenter/outCost/insertSelective',
    method: 'POST',
    data
  })
}
// 外联项目名称查询
export function selectProject(params) {
  return request({
    url: '/operatingCenter/outCost/selectProject',
    method: 'post',
    params
  })
}
// 修改查询
export function selectOutcost(params) {
  return request({
    url: '/operatingCenter/outCost/selectByPrimaryKey',
    method: 'post',
    params
  })
}

// 外联单位名称查询
export function selectCompany(params) {
  return request({
    url: '/operatingCenter/outCost/selectCompany',
    method: 'post',
    params
  })
}

// 分页条件查询
export function getOutcostList(params) {
  return request({
    url: '/operatingCenter/outCost/selectPage',
    method: 'POST',
    params
  })
}

// 查詢收款人（也就是经办人）
export function selectOperator(params) {
  return request({
    url: '/projectContrac/operator',
    method: 'POST',
    params
  })
}
